package org.vincen.springapp.domain.diogenes;

import java.io.Serializable;

import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(schema="diogenes", name="data_dictionary")
@Access(AccessType.FIELD)
public class DataDictionary implements Serializable{

	private static final long serialVersionUID = 337109947193418027L;

	@Id
	@Column(name="pkid")
	@SequenceGenerator(schema="diogenes", name="DataDic_gen", sequenceName="DATADICTIONARY_SEQ")
	@GeneratedValue(generator="DataDic_gen")
	private Integer pkid;
	@Column(name="user_id")
	private Integer userId;
	@Column(name="type")
	private Integer type;
	@Column(name="key")
	private String key;
	@Column(name="value")
	private String valeu;
	@Column(name="comments")
	private String comments;
	
	public DataDictionary() {
		super();
	}

	public DataDictionary(Integer userId, Integer type, String key,
			String valeu, String comments) {
		super();
		this.userId = userId;
		this.type = type;
		this.key = key;
		this.valeu = valeu;
		this.comments = comments;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValeu() {
		return valeu;
	}

	public void setValeu(String valeu) {
		this.valeu = valeu;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public Integer getPkid() {
		return pkid;
	}
	
}
